package com.aspose.cells.a.c;

import com.aspose.cells.Workbook;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;

public class zv {
   private static final String a = "/" + Workbook.class.getPackage().getName().replace('.', '/') + "/resources/";

   public static byte[] a() {
      return e("Aspose.Cells.Book1.xls");
   }

   public static byte[] b() {
      return e("Aspose.Cells.Theme2007.dat");
   }

   public static byte[] c() {
      return e("Aspose.Cells.OleObject.dat");
   }

   public static byte[] d() {
      return e("Aspose.Cells.PatternMasks.dat");
   }

   public static byte[] e() {
      return e("Aspose.Cells.PDF_A_DestOutputData.dat");
   }

   public static byte[] f() {
      return e("Aspose.Cells.AsposeXmlCharType.bin");
   }

   public static com.aspose.cells.b.a.d.zm g() throws Exception {
      return a("Aspose.Cells.NoImage.png");
   }

   public static byte[] h() throws Exception {
      return zw.a(g(), true);
   }

   private static byte[] e(String var0) {
      com.aspose.cells.b.a.d.zm var1 = a(var0);
      if (var1 == null) {
         throw new RuntimeException(var0 + " not found.");
      } else {
         return zw.a(var1, true);
      }
   }

   public static com.aspose.cells.b.a.d.zm a(String var0) {
      try {
         InputStream var1 = c(var0);
         return var1 == null ? null : new com.aspose.cells.b.a.d.zi(var1);
      } catch (Exception var2) {
         return null;
      }
   }

   public static com.aspose.cells.b.a.d.zh b(String var0) {
      try {
         InputStream var1 = c(var0);
         if (var1 == null) {
            return null;
         } else {
            ByteArrayOutputStream var2 = new ByteArrayOutputStream(1024);
            byte[] var3 = new byte[1024];

            for(int var4 = var1.read(var3); var4 > -1; var4 = var1.read(var3)) {
               var2.write(var3, 0, var4);
            }

            return new com.aspose.cells.b.a.d.zh(var2.toByteArray());
         }
      } catch (Exception var5) {
         return null;
      }
   }

   public static InputStream c(String var0) throws Exception {
      return zv.class.getResourceAsStream(a + var0);
   }

   public static com.aspose.cells.b.a.d.zm d(String var0) throws Exception {
      return null;
   }
}
